<include file="Public:header" />
<div class="container main"> <include file="Public:left" />
  <div class="w790">
  <div class="h" style="">
  <a href="{:U('add')}" class="btn btn-info"><i class="glyphicon glyphicon-plus"></i>积分设置</a> 
  <a href="{:U('Integralgoods')}" class="btn btn-info"><i class="glyphicon glyphicon-folder-open"></i>&nbsp;&nbsp;积分产品</a> 
      <div style="clear:both;"></div>
      
      
 </div>

<div class="table_" style=""><table class="table table-bordered" width="100%" border="0" cellspacing="0" cellpadding="0">
     
     
    
 <thead>
 <tr>
    <td align="center">ID</td>
    <td align="center">积分模块</td>
    <td align="center">积分名称</td>
    <td align="center">初始分值</td>
    <td align="center">返回比例</td>
    <td align="center">目标转换比例</td>
    <td align="center">操作</td>
  </tr>
</thead>
<volist name="list" id="vo">
  <tr class="data_list">
    <td align="center"><input type="checkbox" name="id" id="id" class="sall" value="{$vo.id}" />{$vo.id}</td>
    <td align="center">{$vo.typename}</td>
    <td align="center">{$vo.remark}</td>
    <td align="center">{$vo.initVal}</td>
    <td align="center">{$vo.typeratio}</td>
    <?php $ratio=unserialize($vo['aimratio']); 
        $rkey=array_keys($ratio);
    ?>
    <td align="center"><?php echo($rkey[0].'->'.$ratio[$rkey[0]]); ?></td>
    <td align="center">
  
        <a href="{:U('add',array('id'=>$vo['id'],'type'=>'delete'))}" onclick="return confirm('您确定要删除这条记录吗？');" >删除</a>
       
      </td>
  </tr>
</volist>
    
</table>

<div class="pages">
        <div class="controlList fl">
        
         
        <a href="javascript:void(0);" class="btn btn-primary btn-sm" onclick="sall();"><i class="glyphicon glyphicon-check"></i> 全选/反选</a> <a href="javascript:void(0);" class="btn btn-primary btn-sm" onclick="rall();"><i class="glyphicon glyphicon-unchecked"></i> 全不选</a>  
        
        </div>
        <form class="fr" style="display:inline;" id="pagesize" action="" method="get">
         <label class="form-inline"> 每页
          <select name="pagesize" onchange="document.getElementById('pagesize').submit();" class="form-control">
            <option 
            <eq name="pagesize" value="10">selected="selected"</eq>
             value="10">10
            </option>
            <option 
            <eq name="pagesize" value="20">selected="selected"</eq>
             value="20">20
            </option>
            <option 
            <eq name="pagesize" value="30">selected="selected"</eq>
             value="30">30
            </option>
            <option 
            <eq name="pagesize" value="50">selected="selected"</eq>
             value="50">50
            </option>
            <option 
            <eq name="pagesize" value="100">selected="selected"</eq>
             value="100">100
            </option>
            <option 
            <eq name="pagesize" value="500">selected="selected"</eq>
             value="500">500
            </option>
          </select>
          条</label>
          <input type="hidden" name="category_id" value="{$category_id}" />
          <input type="hidden" name="keywords" value="{$keywords}" />
        </form>
        <div class="fr">{$pages}</div>
      </div>


</div>

  </div>
  <div class="clear"></div>
</div>


<include file="Public:footer" />